-- escape
-- create by chendh
-- 技能: 逃脱

return {
    apply = function(source, target, skillId, round, para, extra)
        source:escape();

        -- 将格子设置为无效
        local pos = source:getOwner();
        local grid = DungeonM.getCurrentDungeon();
        grid[pos]:changeState(GRID_STATE_DISABLE);

        -- 先初始化动作序列
        SkillM.initSequence(target, source, skillId);

        SkillM.getSequence(source):escape(source);
        return { source, };
    end,

    parse = function(desc)
        local arr = string.explode(desc, ",");
        local ret = {};

        for i = 1, #arr do
            table.insert(ret, tonumber(arr[i]));
        end
        return ret;
    end,

    -- 解析技能描述
    parseDesc = function(source, skillId, desc, para)
        return desc;
    end,
}

